package com.wpw.dream.hessian.client;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;
import com.wpw.dream.hessian.server.IServerService;

public class HessionClient {

	 public static void main(String[] args) throws MalformedURLException {  
	        String url = "http://127.0.0.1:8091/dream-hessian-server/hessian/helloHession";  
	        HessianProxyFactory factory = new HessianProxyFactory();  
	        IServerService api = (IServerService) factory.create(IServerService.class, url);  
	        String sayHello = api.sayHello("chen");
	        System.out.println(sayHello);  
	    }  
}
